import service from "@/api/index";
//角色权限管理接口
const ROLE_INFO_API = "/api/PermissionManagement/";
export default {
	GetRoleNameList: (data: any) => {
		//获取角色名称集合
		return service.post(`${ROLE_INFO_API}GetRoleNameList`, data);
	},
	GetRoleInfoPage: (data: any) => {
		//获取角色信息
		return service.post(`${ROLE_INFO_API}GetRoleInfoPage`, data);
	},
	AddRoleInfo: (data: any) => {
		//新增角色信息
		return service.post(`${ROLE_INFO_API}AddRoleInfo`, data);
	},
	RoleInfoBatchChangeOfStatus: (data: any) => {
		//批量/单个更改用户状态
		return service.post(`${ROLE_INFO_API}RoleInfoBatchChangeOfStatus`, data);
	},
	UpdateRoleInfo: (data: any) => {
		//更新角色信息
		return service.post(`${ROLE_INFO_API}UpdateRoleInfo`, data);
	},
	AddOrUpdateRoleFunction: (data: any) => {
		//新增或更改角色功能对应信息
		return service.post(`${ROLE_INFO_API}AddOrUpdateRoleFunction`, data);
	},
	GetRoleFunctionList: (data: any) => {
		//获取角色对应的功能菜单
		return service.post(`${ROLE_INFO_API}GetRoleFunctionList`, data);
	},
	GetFunctionNumberList: () => {
		//获取角色对应的功能菜单编号
		return service.post(`${ROLE_INFO_API}GetFunctionNumberList`);
	}
};
